package com.robert.mymvp.contract;

import com.robert.mvp.base.BaseModel;
import com.robert.mvp.base.BasePresenter;
import com.robert.mvp.base.BaseView;
import com.robert.mvp.base.MvpListener;
import com.robert.mymvp.bean.DailyBean;

import java.util.List;

/**
 * Des:
 *
 * @Author: cpf
 * @date: ${date} ${hour} ${minute}
 * @email: 2227039052@qq.com
 */
public interface DailyContract {
    interface DailyModel extends BaseModel {
        void loadDaily(String url, MvpListener<List<DailyBean.StoriesBean>> listener);
    }

    interface DailyView extends BaseView {
        void setData(List<DailyBean.StoriesBean> beanList);
    }

    abstract class DailyPresenter extends BasePresenter<DailyModel, DailyView> {
        protected abstract void loadData(String url);
    }
}
